# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bluez-headers
pkgver=5.71
pkgrel=0
pkgdesc="Bluez development headers"
url="http://www.bluez.org/"
arch="noarch"
license="GPL-2.0-or-later"
depends="!bluez-dev"
source="https://www.kernel.org/pub/linux/bluetooth/bluez-$pkgver.tar.xz"
builddir="$srcdir/bluez-$pkgver"
options="!check" # just headers

package() {
	local headers="
		bluetooth
		bnep
		cmtp
		hci
		hci_lib
		hidp
		l2cap
		rfcomm
		sco
		sdp
		sdp_lib
		"
	for header in $headers; do
		install -Dm644 ./lib/$header.h -t "$pkgdir"/usr/include/bluetooth
	done
}

sha512sums="
648394bbe470405aa0e2d3914474e95c122f567deaaac20a5dd74bac29fa430dfb64cdb7bdb4fb7510e62fa73e96112a97197fc212b421bf480b8d1bb24cfb5d  bluez-5.71.tar.xz
"
